package cn.study.luckydomain.gateway;

import cn.study.luckyclient.dto.query.PrizeListByParamQuery;
import cn.study.luckydomain.prize.PrizeEntity;
import com.baomidou.mybatisplus.core.metadata.IPage;

public interface PrizeGateway {
    public PrizeEntity add(PrizeEntity prizeEntity);
    public PrizeEntity update(PrizeEntity prizeEntity);
    public IPage<PrizeEntity> query(PrizeListByParamQuery prizeListByParamQuery);

    int deductionInventory(Long prizeId, Integer number);
}
